<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"
%><%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"
%><%@ taglib prefix="security" uri="http://www.springframework.org/security/tags"
%><%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"
%><%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"
%>
<head>
    <title><fmt:message key="template" /></title>
</head>
<body>
    <h1><fmt:message key="template" /></h1>
    <table>
        <tbody>
  
            <tr>
                <th><fmt:message key="template_image" /></th>
                <td>
                    <c:out value="${template.image}"/>                </td>
            </tr>
		
            <tr>
                <th><fmt:message key="template_title" /></th>
                <td>
                    <c:out value="${template.title}"/>                
				</td>
            </tr>
            <tr>
                <th><fmt:message key="template_type" /></th>
                <td>
                    <c:out value="${template.typeName}"/>                
				</td>
            </tr>
            <tr>
                <th><fmt:message key="template_friendlyName" /></th>
                <td>
                    <c:out value="${template.friendlyName}"/>                </td>
            </tr>
			<!--
            <tr>
                <th><fmt:message key="template_header" /></th>
                <td>
                    <c:out value="${template.header}"/>                </td>
            </tr>
			-->
            <tr>
                <th><fmt:message key="template_body" /></th>
                <td>
                    <c:out value="${template.body}"/>                </td>
            </tr>
            <!--
			<tr>
                <th><fmt:message key="template_footer" /></th>
                <td>
                    <c:out value="${template.footer}"/>                </td>
            </tr>
			-->
            <tr>
                <th><fmt:message key="template_modDate" /></th>
                <td>
                    <c:out value="${template.modDate}"/>                </td>
            </tr>
            <tr>
                <th><fmt:message key="template_modUser" /></th>
                <td>
                    <c:out value="${template.modUser}"/>                </td>
            </tr>
        </tbody>
        <tfoot>
            <tr>
                <td colspan="2">
                    <div class="buttons">
                        <c:url var="updateUrl" value="/domain/template/updateForm.action">
                            <c:param name="template.inode" value="${template.inode}"/>
                        </c:url>
                        <a href="${updateUrl}"><span><fmt:message key="label.link.update"/></span></a>
                        <c:url var="confirmDeleteUrl" value="/domain/template/confirmDelete.action">
                            <c:param name="template.inode" value="${template.inode}"/>
                        </c:url>
                        <a id="confirmDeleteUrl" href="${confirmDeleteUrl}"><span><fmt:message key="label.link.delete"/></span></a>
                        <script type="text/javascript">
                            Spring.addDecoration(new Spring.AjaxEventDecoration({
                                elementId: "confirmDeleteUrl",
                                event: "onclick",
                                popup: "true",
                                params: { decorator: "none" }
                            }));
                        </script>
                    </div>
                </td>
            </tr>
        </tfoot>
    </table>
    <h2><fmt:message key="label.related.content"/></h2>
</body>
